package com.pro.common.api.sitecontent.intf;

import com.pro.common.api.CommonConst;
import com.pro.common.api.sitecontent.model.request.AuthRoleGetPathRequest;
import com.pro.common.api.sitecontent.model.request.AuthRoleGetRouteCodesRequest;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Set;
//@Tag(name = "路由信息")
@FeignClient(name = CommonConst.ModulesUrl.siteContent,contextId = "AuthRoleFeignClient")
@Hidden
public interface AuthRoleFeignClient {

    @PostMapping("/authRoute/getRouteCodes")
    Set<String> getRouteCodes(@RequestBody AuthRoleGetRouteCodesRequest request);

    @PostMapping("/authRoute/getPath")
    Set<String> getPath(@RequestBody AuthRoleGetPathRequest request);
}
